## Makefile.am for bookreader

# this is the program that gets installed.  it's name is used for all
# of the other Makefile.am variables
bin_PROGRAMS = bookreader bookreader_client

# set the include path for X, qt and KDE
INCLUDES         = $(all_includes)

# the library search path. 
bookreader_LDFLAGS = $(KDE_RPATH) $(all_libraries)

# the libraries to link against.
bookreader_LDADD   = $(LIB_KFILE) $(LIB_KDEPRINT)

# which sources should be compiled for bookreader
bookreader_SOURCES = main.cpp bookreader.cpp pref.cpp bookreaderiface.skel \
			bookwidget.cpp theme.cpp settings.kcfgc settingsdlg.ui renderer.cpp \
	bookmarksholder.cpp bookmarksdlg.ui

# these are the headers for your project
noinst_HEADERS = bookreader.h pref.h bookwidget.h theme.h renderer.h \
	bookmarksholder.h

# client stuff
bookreader_client_LDFLAGS = $(KDE_RPATH) $(all_libraries)
bookreader_client_LDADD   = $(LIB_KDECORE)
bookreader_client_SOURCES = bookreader_client.cpp

kde_kcfg_DATA = bookreader.kcfg

# let automoc handle all of the meta source files (moc)
METASOURCES = AUTO

messages: rc.cpp
	$(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
	$(XGETTEXT) *.cpp -o $(podir)/bookreader.pot

KDE_ICON = AUTO

# this is where the kdelnk file will go 
kdelnkdir   = $(kde_appsdir)/Utilities
kdelnk_DATA = bookreader.desktop

# this is where the XML-GUI resource file goes
rcdir = $(kde_datadir)/bookreader
rc_DATA = bookreaderui.rc
